package com.oly.cms.comment.web.servie.taglib;

import java.util.List;

import com.oly.cms.comment.web.model.CmsComment;
import com.oly.cms.comment.web.servie.ICmsCommentService;
import com.oly.cms.common.model.support.PageData;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

//评论标签
@Service("commentTag")
public class CommentTag {

    @Autowired
    private ICmsCommentService cs;

    // 获取最新留言列表
    public List<CmsComment> listComment() {
        return cs.listCommentParent();
    }

    // 获取留言
    public PageData listPageCommentById(Long postId, String themeName) {
        return cs.getCommentPostId(postId, themeName);
    }

    public boolean commentIsSupport(String themeName) {

        return cs.commentIsSupport(themeName);
    }

}
